package redislock

import "time"

type LockerOption func(l *RedisLocker)

func WithMinBackoff(backoff time.Duration) LockerOption {
	return func(l *RedisLocker) {
		l.MinBackoff = backoff
	}
}

func WithMaxBackoff(backoff time.Duration) LockerOption {
	return func(l *RedisLocker) {
		l.MaxBackoff = backoff
	}
}
